package org.ielts.util.figner;

public class FignerServiceSoapProxy implements org.ielts.util.figner.FignerServiceSoap {
  private String _endpoint = null;
  private org.ielts.util.figner.FignerServiceSoap fignerServiceSoap = null;
  
  public FignerServiceSoapProxy() {
    _initFignerServiceSoapProxy();
  }
  
  public FignerServiceSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initFignerServiceSoapProxy();
  }
  
  private void _initFignerServiceSoapProxy() {
    try {
      fignerServiceSoap = (new org.ielts.util.figner.FignerServiceLocator()).getFignerServiceSoap();
      if (fignerServiceSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)fignerServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)fignerServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (fignerServiceSoap != null)
      ((javax.xml.rpc.Stub)fignerServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.ielts.util.figner.FignerServiceSoap getFignerServiceSoap() {
    if (fignerServiceSoap == null)
      _initFignerServiceSoapProxy();
    return fignerServiceSoap;
  }
  
  public boolean regFgTemplate(java.lang.String sid, java.lang.String fgtemplate) throws java.rmi.RemoteException{
    if (fignerServiceSoap == null)
      _initFignerServiceSoapProxy();
    return fignerServiceSoap.regFgTemplate(sid, fgtemplate);
  }
  
  public java.lang.String identification(java.lang.String fgtemplate) throws java.rmi.RemoteException{
    if (fignerServiceSoap == null)
      _initFignerServiceSoapProxy();
    return fignerServiceSoap.identification(fgtemplate);
  }
  
  
}